Turns the inheriting class into a base keyed collection.
The key is based on the singular class' clustered index.
The requirements are taken care of when
you include the keyeditem in the T class.
If you plan on changing the singular class' clustered index,
you must define dup() that returns a new instance of your class.
If T has foreign keys you must use $(SRCTAG KeyedCollection) instead
since the functions that come with foreign keys need to have the
other class imported.
This also allows you to make a keyed collection in one line.
Turns the inheriting class into a base keyed collection. The key is based on the singular class' clustered index. The requirements are taken care of when you include the keyeditem in the T class. If you plan on changing the singular class' clustered index, you must define dup() that returns a new instance of your class.
If T has foreign keys you must use $(SRCTAG KeyedCollection) instead since the functions that come with foreign keys need to have the other class imported.
This also allows you to make a keyed collection in one line.
Now you can use Candies as a collection.